package com.service.util;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by john on 2016/4/1.
 */
public class ForeachTest {

    public static void main(String[] args) {
        List<String> strList = new ArrayList<String>();
        strList.add("test1");
        strList.add("test2");
        strList.add("test3");
        for(String s:strList){
            System.out.println(s);
        }
    }
}

